//
//  SingerView.m
//  海角音乐
//
//  Created by dllo on 15/8/14.
//  Copyright (c) 2015年 杨元石. All rights reserved.
//

#import "SingerView.h"

@implementation SingerView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self) {        
     
        CGFloat flowLayOut_width = 115*ADJUSTHEIGHT; // 110
        CGFloat flowLayout_height = 130*ADJUSTWIDTH; // 120
        
        self.flowLayout = [[UICollectionViewFlowLayout alloc] init];
        self.flowLayout.itemSize = CGSizeMake(flowLayOut_width, flowLayout_height);
        self.flowLayout.minimumLineSpacing = 1;
        self.flowLayout.minimumInteritemSpacing = 1;
        self.flowLayout.sectionInset = UIEdgeInsetsMake(10*ADJUSTHEIGHT,5,5,5);
        self.singerCollection = [[UICollectionView alloc]initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, SCREEN_HEIGHT+50) collectionViewLayout:self.flowLayout];
        self.singerCollection.backgroundColor = [UIColor clearColor];
        
         self.singerCollection.alwaysBounceVertical = YES;
        
        [self addSubview:self.singerCollection];
        [_flowLayout release];
        [_singerCollection release];
        
    }
    
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
